package gugga.logging.publishers
{
	
	import flash.utils.getQualifiedClassName;
	
	import gugga.logging.IFilter;
	import gugga.logging.IFormatter;
	import gugga.logging.Level;
	import gugga.logging.formatters.XMLFormatter;	
	
	/**
	*	Standard implementation of the Logger's framework IPublisher interface.
	*	XML formats incoming logging messages and sends them (traces) to the output window.
	*
	*	@author Ralf Siegel
	*/
	public class XMLPublisher extends BasePublisher
	{
		private var filter:IFilter;
		private var formatter:IFormatter;
		private var level:Level;
	
		/**
		*	Constructs a new trace publisher with the standard XML formatter
		*/
		public function XMLOutput()  : void
		{
			this.setFormatter(new XMLFormatter());
		}
	
		/**
		 *	@see Object#toString() 
		 */
		public function toString():String
		{
			return "[object " + getQualifiedClassName(this) + "]";			
		}	
	}
}